import { request } from '@/utils/request';

import { PageParams } from './model/pageParams';

const insertApi = (params: any) =>
  request.post({
    url: '/goods/insert',
    data: params,
  });

const page = (params: PageParams) =>
  request.post({
    url: '/goods/page',
    data: params,
  });

const updateApi = (params: any) =>
  request.post({
    url: '/goods/update',
    data: params,
  });

export { insertApi, page, updateApi };
